package drawing;

public class ZBuffer {

	float[][] zBuffer;

	public ZBuffer(int x, int y) {
		this.zBuffer = new float[y][x];
		for(int i=0; i<y; i++){
			for(int j=0; j<x; j++){
				zBuffer[i][j] = Float.MAX_VALUE;
			}
		}
	}

	public float getZValue(int x, int y){
		return zBuffer[y][x];
	}
	
	public void setZValue(int x, int y, float z){
		zBuffer[y][x] = z;
	}
	
}
